<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{	
echo  $query1 = "DELETE FROM billmaster
	            WHERE billMasterId = ".$_GET['billMasterId'];
	$result1= mysql_query($query1);
  if($result1)
  {
    $query2 = "DELETE FROM  billdetail
                WHERE billDetailId = ".$_GET['billDetailId'];
    $result2= mysql_query($query2);
  }
  else
  {
    echo "Delete Failed";
  }
	header("Location:billList.php");
}
?>